package com.csun.cmny.provider.dto;

import com.csun.cmny.provider.pojo.Room;
import com.csun.cmny.provider.pojo.User;
import com.csun.cmny.provider.validator.GroupValid;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Objects;

@Data
public class Group implements Serializable {
	@NotNull(message = "{id.empty}", groups = {GroupValid.class})
    private Long nursingGroupId;	//班组id

	@NotEmpty(message = "{Group.banz.name.notnull}", groups = {GroupValid.class})
	@Size(min = 1, max = 32, message = "{Group.banz.name.length}", groups = {GroupValid.class})
    private String name;		//班组名称

	@NotNull(message = "{Group.banzhang.id.notnull}", groups = {GroupValid.class})
	@Range(min=1, max=999999999, message="{Group.banzhang.id.range}", groups = {GroupValid.class})//这里这个范围需要更改11位
    private Long userId;		//班长id

	@NotNull(message = "{Group.jigou.id.notnull}", groups = {GroupValid.class})
	@Range(min=1, max=999999999, message="{Group.jigou.range]", groups = {GroupValid.class})//这里这个范围需要更改11位
    private Long groupId;		//机构id


    private  Long nursingGroupBindId;//护工与护工组绑定关系Id
	
	private List<User> userList;	//护士userId集合
	
	private List<Room> roomList;	//房间id集合

	private String remark;			//备注
	
    private Integer valid;

    private Date createTime;

    private Date modifyTime;

    private Long modifier;
    
    private String monitorName;	//班长姓名

    private  String   userName;

    private static final long serialVersionUID = 1L;

    private  Long buildingId;//楼栋Id


}